package com.jic.interaction.JDVOP.controller;

import com.jic.interaction.JDVOP.common.utils.RestResult;
import com.jic.interaction.JDVOP.model.enyity.order.CancelOrder;
import com.jic.interaction.JDVOP.model.vo.request.PaymentDetailRequest;
import com.jic.interaction.JDVOP.model.vo.request.PaymentRequest;
import com.jic.interaction.JDVOP.model.vo.response.PaymentDetailResponse;
import com.jic.interaction.JDVOP.model.vo.response.PaymentResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName PaymentController
 * TODO
 * @Description 支付
 * @Author chenhongfeng
 * @Date 2020/11/16 14:41
 * @Version 1.0
 **/
@RestController
@Slf4j
@RequestMapping("/price")
@Api(value = "JD 支付接口", tags = "JD 支付接口", description = "OrderController")
public class PaymentController {

        
    /*
     *TODO
     *ClassName PaymentController
     *@Author chenhongfeng
     *@Package com.jic.interaction.JDVOP.controller
     *@Description 查询余额      查询金采和预存款余额的余额。
     *@Date 17:36 2020/11/16
     *@Param 
     *@return 
     *@Version:1.0
     **/
    @ApiOperation(value = "查询余额", notes = "查询余额。")
    @PostMapping("/getUnionBalance")
    public RestResult<PaymentResponse> getUnionBalance(PaymentRequest request){

        return RestResult.error(null,"9999", "接口未完善，正在通宵赶进度中");
    }
    /*
     *TODO
     *ClassName PaymentController
     *@Author chenhongfeng
     *@Package com.jic.interaction.JDVOP.controller
     *@Description 查询余额变动明细     仅支持预存款余额明细查询，不支持金采余额明细查询。
     *@Date 17:38 2020/11/16
     *@Param
     *@return
     *@Version:1.0
     **/
    @ApiOperation(value = "查询余额变动明细", notes = "查询余额变动明细。")
    @PostMapping("/getBalanceDetail")
    public RestResult<PaymentDetailResponse> getBalanceDetail(PaymentDetailRequest request){

        return RestResult.error(null,"9999", "接口未完善，正在通宵赶进度中");
    }

    @ApiOperation(value = "发起支付接口", notes = "发起支付接口。")
    @PostMapping("/doPay")
    public RestResult<String> getInitiatePayment(CancelOrder request){

        return RestResult.error(null,"9999", "接口未完善，正在通宵赶进度中");
    }
}
